﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Controls.Primitives;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace WpfDrawing
{
    /// <summary>
    /// MainWindow.xaml 的交互逻辑
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
            for (int i = 20; i > 0; i--)
            {
                for (int j = 0; j < 3; j++)
                {
                    //UniformGrid uniformGrid = new UniformGrid()
                    //{
                    //    Columns = 30,
                    //    Rows = 9,
                    //    Width=30*20,
                    //    Height=9*10
                    //};
                    //for(int x=0;x<30*9;x++)
                    //{
                    //    uniformGrid.Children.Add(new Button()
                    //    {
                    //        Width = 20,
                    //        Height = 10,
                    //    });
                    //}


                    //ug.Children.Add(new MyGrid());
                }
            }
        }






        public List<BarChartItem> Items
        {
            get
            {
                return new List<BarChartItem>()
                {
                    new BarChartItem(){name="陈傻傻",money=3500,year=2012 },
                    new BarChartItem(){name="陈傻傻",money=4300,year=2013  },
                    new BarChartItem(){name="陈傻傻",money=5100,year=2014  },
                    new BarChartItem(){name="陈傻傻",money=6000,year=2015  },
                    new BarChartItem(){name="陈傻傻",money=4600,year=2016 },
                    new BarChartItem(){name="陈傻傻",money=5700,year=2017  },
                    new BarChartItem(){name="陈傻傻",money=6000,year=2018  }

                };
            }
        }

        private void root_Loaded(object sender, RoutedEventArgs e)
        {
            linechart.DrawLines();
        }

        private void Button_Click(object sender, RoutedEventArgs e)
        {
            //tdbox.DrawSingleRect(2, 2, 1);
        }

        private void Button_Click_1(object sender, RoutedEventArgs e)
        {
            TanksWar tanksWar = new TanksWar();
            tanksWar.ShowDialog();
        }
    }



}
